<?php
/*
 * Created on 08.01.2007
 *
 * To change the template for this generated file go to
 * Window - Preferences - PHPeclipse - PHP - Code Templates
 */

m2import('phpinchains/psp/Tag.php');

class example_emptyHandler extends phpinchains_psp_Tag
{

    /**
     * Is a body tag (if false, body is ignored)
     */
    var $tagType = PSP_EMPTY_TAG;
    /**
     * Tag name in form namespace:tagname
     */
    var $tagName   = 'example:empty';
  
    function doStartTag()
    {
        // Do something useful here
        // e.g. get The parent and add some data to it alike c:param and c:url
        $this->out->write("emptytag ".$this->attrs['attr1']." ".$this->attrs['attr2']);
        return PSP_SKIP_BODY;
    }
    
    // In empty tag only necessary, if tag skips page, e.g. redirect -> no further processing needed
    function doEndTag()
    {
        //return PSP_SKIP_PAGE;
    }

}
?>